//
//  Header.h
//  LeadMagazine
//
//  Created by yuzhou on 13-3-12.
//  Copyright (c) 2013年 fred. All rights reserved.
//
//33457  医师报
//appid 59
//storid 78
//app_key : 6b3d17f585692897a6c1c1a74c001121
//identify_key : ec3dea6a73469b97884fc0ebfb3b34b3

// 行业报demo 修改 步骤：
//1.icon， image
//2.接口，appname，app_id,store_id,app_key,indefity_key ;
//3.搜索：“appname” 修改  3个 ；


#pragma mark **********期刊接口**********

#define MagazineCategoryURL @"http://service.183read.com/service/articleservice?act=get.article.class&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\"}"
//杂志分类内容  copr: 版权问题   行业报
#define MagazineByCategoryURL @"http://service.183read.com/service/articleservice?act=get.class.magazine.item.list&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"brower\":\"IE\",\"store_id\":\"0\",\"class_id\":\"%@\",\"copr\":\"1\"}"


#define MagazineInfoURL @"http://service.183read.com/service/articleservice?act=get.magazine.info&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\",\"item_id\":\"%@\"}"

#define MagazineContentURL @"http://service.183read.com/service/articleservice?act=get.magazine.article.list&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\",\"user_id\":\"%@\",\"item_id\":\"%@\",\"use_device_number\":\"1\",\"device_code\":\"%@\",\"device_app_id\":\"59\",\"no_content\":\"1\"}"


#define ArticleInfoURL @"http://service.183read.com/service/articleservice?act=get.article.info&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\",\"user_id\":\"%@\",\"magazine_article_id\":\"%@\",\"random_code\":\"asdfasdf\"}"

#define RecentReadUrl @"http://service.183read.com/service/articleservice.php?act=set.item.readlog&param={\"platform\":\"IPhone\",\"app_id\":\"20\",\"app_name\":\"医师报\",\"brower\":\"IE\",\"store_id\":\"0\",\"log_type\":\"2\",\"user_id\":\"%@\",\"user_name\":\"%@\",\"item_id\":\"%@\"}"

#define RecentReadedUrl @"http://service.183read.com/service/articleservice.php?act=get.item.readlog.list&param={\"app_id\":\"2\",\"recentlyread_type\":\"1\",\"user_id\":\"%@\",\"user_name\":\"%@\"}"

#define SearchUrl @"http://service.183read.com/service/articleservice?act=search.magazine.by.article&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\",\"keywords\":\"%@\",\"copr\":\"1\"}"

#define HistoryUrl @"http://service.183read.com/service/articleservice?act=get.history.magazine.list&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\",\"magazine_id\":\"%@\"}"

#pragma mark **********听书接口**********

#define ListenCategoryURL @"http://service.183read.com/service/audio.php?act=get.class.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\"}"

#define ListenByCategoryURL @"http://service.183read.com/service/audio.php?act=get.audio.class&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"class_id\":\"%@\"}"

#define ListenInfoURL @"http://service.183read.com/service/audio.php?act=get.detail.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"item_id\":\"%@\"}"

#define ListenContentURL @"http://service.183read.com/service/audio.php?act=get.all.sub.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"item_id\":\"%@\",\"use_device_number\":\"1\",\"device_code\":\"%@\",\"device_app_id\":\"20\"}"

#define ListenCommentURL @"http://service.183read.com/service/audio.php?act=get.comment.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"item_id\":\"%@\"}"

#define SearchListenUrl @"http://service.183read.com/service/audio.php?act=get.search.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"keywords\":\"%@\"}"

#pragma mark **********小说接口**********



#define NovelCategoryURL @"http://service.183read.com/service/service.php?act=get.novel.clazzdir&param={\"resource_type\":7}"

#define NovelByCategoryURL @"http://service.183read.com/service/service.php?act=get.clazz.novelist&param={\"resource_type\":7,\"class_id\":\"%@\",\"perpage_count\":%d}"

#define NovelInfoURL @"http://service.183read.com/service/service.php?act=get.novel.introchapters&param={\"item_id\":\"%@\",\"close_chapter\":\"0\",\"user_id\":\"%@\",\"use_device_number\":\"1\",\"device_code\":\"%@\",\"app_id\":\"20\",\"app_name\":\"医师报\"}"


#define NovelChapterInfoURL @"http://service.183read.com/service/service.php?act=get.novel.chaptercons&param={\"nc_id\":\"%@\",\"platform\":1}"
#define NovelCollectURL @"http://service.183read.com/service/service.php?act=add.user.novel.favorite&param={\"app_id\":2,\"app_name\":\"医师报\",\"platform\":\"phone\",\"category\":\"novel\",\"category_id\":7,\"item_id\":\"%@\",\"user_id\":\"%@\"}"

#define AddNovelReadURL @"http://service.183read.com/service/service.php?act=add.user.novel.readlog&param={\"resource_type\":7,\"item_id\":\"%@\",\"nc_id\":\"%@\",\"user_id\":\"%@\"}"

#define NovelRecentlyReadURL @"http://service.183read.com/service/service.php?act=get.user.novel.readlog&param={\"app_id\":2,\"app_name\":\"医师报\",\"platform\":\"phone\",\"category\":\"novel\",\"resource_type\":7,\"user_id\":\"%@\",\"category_id\":7}"

#define SearchNovlUrl @"http://service.183read.com/service/service.php?act=search.novel&param={\"app_id\":2,\"app_name\":\"医师报\",\"platform\":\"phone\",\"category\":\"novel\",\"category_id\":7,\"keywords\":\"%@\"}"


#pragma mark **********报纸接口**********

#define NewspaperHomePageURL @"http://service.183read.com/service/service.php?act=get.homepage.npcolumn&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"\",\"category_id\":\"6\",\"platform\":\"\",\"random_code\":\"\",\"resource_id\":\"%@\",\"session_id\":\"\",\"show_num\":\"7\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define NewspaperCategoryURL @"http://service.183read.com/service/service.php?act=get.homepage.nplists&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"audio\",\"category_id\":\"6\",\"list_num\":\"7\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"resource_id\":\"%@\",\"session_id\":\"1\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define NewspaperTextVersionURL @"http://service.183read.com/service/service.php?act=get.all.nparticles&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"audio\",\"newspaper_id\":\"%@\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define NewspaperPicVersionURL @"http://service.183read.com/service/service.php?act=get.all.npimages&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"audio\",\"newspaper_id\":\"%@\",\"num\":\"10\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0,\"image_quality\":\"%@\"}"

#define NewspaperPicDesURL @"http://service.183read.com/service/service.php?act=get.nppage.info&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"audio\",\"item_id\":\"%@\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":%d,\"page_no\":0}"

#define NewspaperSingleArticleURL @"http://service.183read.com/service/service.php?act=get.nparticle.info&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"article_id\":\"%@\",\"brower\":\"Chrome\",\"category\":\"audio\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"

#define NewspaperDateURL @"http://service.183read.com/service/service.php?act=get.newspaper.pagesByDate&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"\",\"category_id\":\"6\",\"day\":\"%@\",\"month\":\"%@\",\"year\":\"%@\",\"platform\":\"\",\"random_code\":\"\",\"resource_id\":\"%@\",\"session_id\":\"\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#pragma mark **********动态接口**********

#define DynamicsHomepageURL @"http://service.183read.com/service/service.php?act=get.publicopinion.list&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"audio\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define DynamicsSingleArticleURL @"http://service.183read.com/service/service.php?act=get.publicopinion.details&param={\"app_id\":\"59\",\"app_name\":\"医师报\",\"brower\":\"Chrome\",\"category\":\"audio\",\"detail_id\":\"%@\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"78\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"





#pragma mark **********账号接口**********

#define LoginURL @"http://register.183read.com:8080/service/service?act=login.user&param={\"platform\":\"iphone\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"0\",\"user_name\":\"%@\",\"password\":\"%@\"}"

#define RegisterURL @"http://register.183read.com:8080/service/service?act=register.user&param={\"platform\":\"iphone\",\"app_name\":\"医师报\",\"category\":\"magazine\",\"store_id\":\"78\",\"user_name\":\"%@\",\"password\":\"%@\",\"email\":\"%@\"}"
//修改密码
#define ModifyURL @"http://register.183read.com:8080/service/service?act=editpwd.user&param={\"user_name\":\"%@\",\"password\":\"%@\",\"new_pad\":\"%@\"}"
//修改手机号
#define ModifyTelURL @"http://service.183read.com/service/service?mobilepayInterface.php&act=is.bind&param={\"platform\":\"iphone\",\"app_id\":\"59\",\"app_name\":\"医师报\",\"category\":\"audio\",\"store_id\":\"78\",\"password\":\"%@\",\"user_id\":\"%@\",\"mobile\":\"%@\"}"

#pragma mark **********激活接口**********

#define ActivateUserURL @"http://service.183read.com/service/service.php?act=add.code.bound&param={\"app_id\":\"59\",\"imei\":\"%@\",\"code\":\"%@\"}"


#define UUIDIsActivatedURL @"http://service.183read.com/service/service.php?act=get.code.power&param={\"app_id\":\"59\",\"imei\":\"%@\"}"

#pragma mark **********检测更新**********

#define DetectionUpdate @"http://itunes.apple.com/lookup?id=%@"


#define GetAppVersionURL @"http://api.183read.com/open_api/rest.php?act=module.app.version.get&param={\"identify_key\":\"%@\",\"app_key\":\"%@\",\"version_num\":\"1.0\",\"app_platform\":\"2\",\"app_name\":\"医师报\"}"

